package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 火车班次对象 train
 * 
 * @author ruoyi
 * @date 2023-05-10
 */
public class Train extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 火车班次id */
    private Long id;

    /** 火车动车座位类型表 (1、高铁  2、动车  3、普通  4、其他) */
    @Excel(name = "火车动车座位类型表 (1、高铁  2、动车  3、普通  4、其他)")
    private Long trainSeatType;

    /**  发车点 对应train_station表id */
    @Excel(name = " 发车点 对应train_station表id")
    private Long gridPosition;

    /** 结束位置 对应train_station表id */
    @Excel(name = "结束位置 对应train_station表id")
    private Long endPosition;

    /** 价格 */
    @Excel(name = "价格")
    private BigDecimal price;

    /** 剩余座位数量 */
    @Excel(name = "剩余座位数量")
    private Long remainingAmount;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTrainSeatType(Long trainSeatType) 
    {
        this.trainSeatType = trainSeatType;
    }

    public Long getTrainSeatType() 
    {
        return trainSeatType;
    }
    public void setGridPosition(Long gridPosition) 
    {
        this.gridPosition = gridPosition;
    }

    public Long getGridPosition() 
    {
        return gridPosition;
    }
    public void setEndPosition(Long endPosition) 
    {
        this.endPosition = endPosition;
    }

    public Long getEndPosition() 
    {
        return endPosition;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setRemainingAmount(Long remainingAmount) 
    {
        this.remainingAmount = remainingAmount;
    }

    public Long getRemainingAmount() 
    {
        return remainingAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("trainSeatType", getTrainSeatType())
            .append("gridPosition", getGridPosition())
            .append("endPosition", getEndPosition())
            .append("price", getPrice())
            .append("remainingAmount", getRemainingAmount())
            .toString();
    }
}
